import { post } from './serve'


// let BASE = 'http://115.236.162.166:18081/smk_party';//外网
let BASE = 'http://192.168.23.200:8081/smk_party'//内网
// let BASE = 'http://192.168.36.77:8083/smk_party'//刘

let $URL = {
  getTabsByUser:BASE + '/sys/user/getTabsByUser.htm',
  findSonList:BASE + '/pb/org/findSonList.htm',
  findUserNum:BASE + '/pb/org/findUserNum.htm',
  findPageList:BASE + '/pb/OrgUser/findPageList.htm',
  doSave:BASE + '/pb/org/doSave.htm',
  deleteOrg:BASE + '/pb/org/deleteOrg.htm',
  getOrgDtl:BASE + '/pb/org/load.htm',
  findOrgList:BASE + '/pb/org/findOrgList.htm',
  findStationList:BASE + '/pb/station/findStationList.htm',
  findOrg:BASE + '/pb/org/findOrg.htm',
  taskPlanWebList:BASE + '/pbTaskPlanWeb/findPageList.htm',
  addPerson:BASE + '/pb/user/addPerson.htm',
  resetPassword:BASE + '/pb/user/resetPassword.htm',
  changePersonInfo:BASE + '/pb/user/changePersonInfo.htm',
  dimission:BASE + '/pb/OrgUser/dimission.htm',
  statusReset:BASE + '/pb/user/doSave.htm',
  batchImport:BASE + '/pbTaskPlanWeb/batchImport.htm',//行事历导入
  planAdd:BASE + '/pbTaskPlanWeb/doSave.htm',
  doStatus:BASE + '/pbTaskPlanWeb/doStatus.htm',
  startOrStop:BASE + '/pbTaskPlanWeb/startOrStop.htm',
  doDelete:BASE + '/pbTaskPlanWeb/doDelete.htm',
  jobDesPageList:BASE + '/pb/JobDesc/findPageList.htm',
  orgBatchImport:BASE + '/pb/org/orgBatchImport.htm',//组织导入
  desDoDelete:BASE + '/pb/JobDesc/doDelete.htm',
  jobDescDoSave:BASE + '/pb/JobDesc/doSave.htm',
  uploadFile:BASE + '/pb/file/upload.htm',

};
//菜单
export function getTabsByUser(params){
	return post($URL.getTabsByUser, params);
}
//获取管理的组织树
export function findOrg(params){
	return post($URL.findOrg, params);
}
//组织树
export function findSonList(params){
	return post($URL.findSonList, params);
}
//组织信息
export function findUserNum(params){
	return post($URL.findUserNum, params);
}
//人员信息列表
export function findPageList(params){
	return post($URL.findPageList, params);
}
//增加、编辑组织
export function doSave(params){
	return post($URL.doSave, params);
}
//删除组织
export function delOrg(params){
	return post($URL.deleteOrg, params);
}
//组织详情
export function getOrgDtl(params){
	return post($URL.getOrgDtl, params);
}
//搜索组织
export function findOrgList(params){
	return post($URL.findOrgList, params);
}
//搜索岗位
export function findStationList(params){
	return post($URL.findStationList, params);
}
//行事历分页
export function taskPlanWebList(params){
	return post($URL.taskPlanWebList, params);
}
//添加人员
export function addPerson(params){
	return post($URL.addPerson, params);
}
//重置密码
export function resetPassword(params){
	return post($URL.resetPassword, params);
}
//修改编辑人员
export function changePersonInfo(params){
	return post($URL.changePersonInfo, params);
}
//修改编辑人员
export function dimission(params){
	return post($URL.dimission, params);
}
//状态改动
export function statusReset(params){
	return post($URL.statusReset, params);
}
// 导入地址
export function batchImport(){
  return $URL.batchImport;
}
// 导入地址
export function orgBatchImport(){
  return $URL.orgBatchImport;
}
// 行事历新增
export function planAdd(params){
	return post($URL.planAdd, params);
}
// 批量停用
export function doStatus(params){
	return post($URL.doStatus, params);
}
// 单个停用或启用
export function startOrStop(params){
	return post($URL.startOrStop, params);
}
// 删除
export function doDelete(params){
	return post($URL.doDelete, params);
}
// 履职说明书表格
export function jobDesPageList(params){
	return post($URL.jobDesPageList, params);
}
// 履职说明书单个删除
export function desDoDelete(params){
	return post($URL.desDoDelete, params);
}
// 履职说明书修改或增加
export function jobDescDoSave(params){
	return post($URL.jobDescDoSave, params);
}
// 文件
export function uploadFile(){
	return $URL.uploadFile;
}